
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Cursor连接远程服务器部署RuoYi - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>Cursor连接远程服务器部署RuoYi - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">在 Cursor 编辑器中，需要安装哪个特定的插件来实现远程服务器连接功能？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">需要在 Cursor 编辑器中安装名为 "Remote - SSH" 的插件来实现远程连接功能。</div>
          </div>
          <div class="card-source">来源: 二、连接远程服务器 > 2. 安装 SSH 插件</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">命令</div>
          <div class="card-question">在部署 RuoYi-Vue 后端服务时，使用哪个 Maven 命令来打包项目？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">命令</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">使用 `./mvnw clean package -DskipTs` 命令来打包后端项目。</div>
          </div>
          <div class="card-source">来源: 四、部署 RuoYi-Vue 项目 > 2. 后端部署</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">配置</div>
          <div class="card-question">在 Nginx 的配置文件中，`location /prod-api/` 代码块的作用是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">配置</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">它的作用是配置反向代理，将所有以 `/prod-api/` 开头的 API 请求转发到本地的后端服务 `http://localhost:8080/`。</div>
          </div>
          <div class="card-source">来源: 四、部署 RuoYi-Vue 项目 > 3. 前端部署</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">命令</div>
          <div class="card-question">如何验证 Redis 服务安装后是否正常运行？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">命令</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">可以通过执行命令 `redis-cli ping` 来验证 Redis 是否正常运行。</div>
          </div>
          <div class="card-source">来源: 三、服务器环境配置 > 3. Redis 安装</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">配置</div>
          <div class="card-question">在配置服务器防火墙 (UFW) 时，文档中明确指出了需要允许哪些端口或服务？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">配置</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">文档中明确指出需要允许 SSH 连接、80/tcp (HTTP)、443/tcp (HTTPS) 以及 8080/tcp (后端服务端口)。</div>
          </div>
          <div class="card-source">来源: 五、系统配置与优化 > 1. 防火墙配置</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">命令</div>
          <div class="card-question">构建 RuoYi-Vue 前端项目以用于生产环境的命令是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">命令</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">构建生产环境代码的命令是 `npm run build:prod`。</div>
          </div>
          <div class="card-source">来源: 四、部署 RuoYi-Vue 项目 > 3. 前端部署</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">文档中提供的数据库备份脚本是如何管理旧备份文件的？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">该脚本通过 `find` 命令查找并删除超过7天的 `.sql` 备份文件，以防止占用过多磁盘空间。</div>
          </div>
          <div class="card-source">来源: 六、定期维护与备份 > 1. 数据库备份</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">命令</div>
          <div class="card-question">如何实时查看 RuoYi-Vue 后端应用的运行日志？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">命令</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">可以使用命令 `tail -f /opt/ruoyi/ruoyi.log` 来实时查看应用日志。</div>
          </div>
          <div class="card-source">来源: 五、系统配置与优化 > 2. 系统监控与日志</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">配置</div>
          <div class="card-question">在安装完 JDK 8 后，如何将其 `JAVA_HOME` 环境变量持久化配置到系统中？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">配置</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">通过执行 `echo 'export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64' >> ~/.bashrc` 和 `echo 'export PATH=$PATH:$JAVA_HOME/bin' >> ~/.bashrc` 命令，将环境变量配置写入 `~/.bashrc` 文件中，然后使用 `source ~/.bashrc` 使其生效。</div>
          </div>
          <div class="card-source">来源: 三、服务器环境配置 > 1. JDK 安装</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
